﻿package cn.edu.zjusc.Webservice;
import java.util.List;

import javax.ejb.Stateless;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;

import org.jboss.wsf.spi.annotation.WebContext;

import cn.edu.zjusc.POJO.*;
import cn.edu.zjusc.Util.CacheManager;
@Stateless
@WebService( name = "MajorCodeService", serviceName = "MajorCodeService")   
@SOAPBinding(style = SOAPBinding.Style.RPC)
@WebContext (contextRoot="/ZJUSCIX/Service", urlPattern="/MajorCodeService")  
public class MajorCodeService {

	public List<MajorCode> GetAllMajorInfo() {
		return CacheManager.getAllMajorInfo();
	}
}
